package observer;


public class Test {
	public static void main(String[] args) {
		Subject subject=new ConcreteSubject();
		
		Observer o1=new ConcreteObserver1();
		Observer o2=new ConcreteObserver2();
		
		subject.add(o1);
		subject.add(o2);
		
		subject.notify("hello");
	}
}
